package tree;

import lexer.Token;

public class NamingException extends Exception {

	/**
	 * Default serial Number
	 */
	private static final long serialVersionUID = 1L;

	public NamingException(Token t, String str) {
		super(t.toString() + str);
	}

	public static NamingException alreadyDefined(Token which) {
		return new NamingException(which, " already defined");
	}

	public static NamingException undefined(Token which) {
		return new NamingException(which, " undefined");

	}

}
